﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MaLu.Data;
using MaLu.Common;
using MaLu.BusiLogic;
using System.Text;
using MaLu.Framework.Common;

namespace MaluJg.web.PovertyIn
{
    public partial class UVDeformity : SUserControl
    {
       
        public void LoadData()
        {
            
            DataTable dt = SqlHelper.Instance.ExecuteDataTable(Provider, @"SELECT *  FROM [SDeformity] where id=" + RecordID);
            if (dt.Rows.Count > 0)
            {
               
                DataRow dr = dt.Rows[0];
                tbYear.Text = dr["Year"].ToString();
                tbName.Text = dr["Name"].ToString();
                tbAcount.Text = dr["account"].ToString();
                tbAddress.Text = dr["address"].ToString();
                tbDistrict.Text = dr["district"].ToString();
                tbTown.Text = dr["town"].ToString();
                tbMonthMoney.Text = dr["MonthMoney"].ToString();
                tbPeopleCount.Text = dr["PeopleCount"].ToString();
                tbRemark.Text = dr["remark"].ToString();
                tbDeformityNum.Text = dr["DeformityNum"].ToString();
                tbDeformityType.Text = dr["DeformityType"].ToString();
                tbType.Text = dr["type"].ToString();
                tbVillage.Text = dr["belongto"].ToString();
                tbMonth.Text = dr["month"].ToString();
                tbGendar.Text = dr["gender"].ToString();

            }
        }
    }
}